import { createApp } from 'vue'
import { setupStore } from '@/store'
import { setupRouter } from '@/router'


import App from './App.vue'
import { setupElementPlus } from './plugins/elementPlus'
import './assets/styles/main.css'
import logger from './utils/logger'

const run = async () => {
    const app = createApp(App)

    logger.setNamespace("system init")

    logger.info("------------------创建app完毕------------------")

    setupStore(app)

    await setupRouter(app)

    setupElementPlus(app)

    app.mount('#app')
}

run()
